package org.springframework.liukai.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.liukai.test.bean.Person;
import org.springframework.liukai.test.config.JavaConfig;

/**
 * @author liukai
 * @date 2022/7/15 15:46
 */
public class MyApplication {
	public static void main(String[] args) {

		ApplicationContext applicationContext = new AnnotationConfigApplicationContext(JavaConfig.class);

		Person person = applicationContext.getBean(Person.class);
		System.out.println(person);

	}

}
